package com.ftg.learn.execl.controller;

import com.ftg.learn.execl.service.ExcelService;
import com.ftg.learn.execl.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 布衣
 */
@RestController
public class ExcelController {

    @Resource
    ExcelService excelService;

    @GetMapping("/readExecl")
    public R<String> readExcel() {
        return R.build(200, "success", excelService.readAllSheets("D:\\教师点名册 (1).xls"));
    }

}
